#!/usr/bin/env python
# -*- coding:utf-8 -*-

"""
Author: ZhaoFeng
Email: 

Date: 2021/4/15 13:36
"""
import unittest
import time
from datetime import datetime

# class Test_Bbb(unittest.TestCase):
#     """临时"""
#
#     def test_1(self):
#         """测试test1"""
#         print("test1")
#         assert 5==5
#
#     def test_2(self):
#         """测试test2"""
#         assert 5==6

print(time.time())
print(time.localtime())
print(datetime.now())
print(datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f'))
print(datetime.timestamp(datetime.now()))
print(datetime.timetuple(datetime.now()))
print("{:.3f}".format(time.time()))
print(datetime.fromtimestamp(float("{:.3f}".format(time.time()))))
